﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Ordonnance
{
    public partial class FormSmiles : Form
    {
        public FormSmiles()
        {
            InitializeComponent();
        }

        public int idSelSmile = -1;

        public void ImMouseDown(object sender, MouseEventArgs e)
        {
            try
            {
                String s = ((PictureBox)sender).Name;
                idSelSmile = Convert.ToInt32(s.Replace("i",""));
            }
            catch (Exception ex) { MessageBox.Show("Ошибка выбора смайла: " + ex.Message); }
            Close();
        }

        private void FormSmiles_Shown(object sender, EventArgs e)
        {
            idSelSmile = -1;
        }

    }
}
